package com.qianyu.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qianyu.project.entity.MaterialNeed;
import com.qianyu.project.entity.MaterialNeedDetail;

import java.util.List;
import java.util.Map;

public interface IMaterialNeedService extends IService<MaterialNeed> {
    /**
     *  添加材料需求
     * description:  <br/>
     * author: lyz   <br/>
     * date: 2021/2/6 <br/>
     * params:  <br/>
     * return:
     */
    Integer saveMaterialNeed(MaterialNeed need, List<MaterialNeedDetail> details);

    /**
     *高级查询
     * description:  <br/>
     * author: lyz   <br/>
     * date: 2021/2/22 <br/>
     * params:  <br/>
     * return:
     */
    List<MaterialNeed> getMaterialNeedList(Map<String, String> args);

    /**
     *单个查询
     * description:  <br/>
     * author: lyz   <br/>
     * date: 2021/2/22 <br/>
     * params:  <br/>
     * return:
     */
    MaterialNeed getNeedById(String id);
}
